package com.sangmo.fts.training.interfaces;

import com.sangmo.boot.framework.common.validation.meta.State;
import com.sangmo.fts.training.model.Training;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

public class TrainingCreation implements Serializable {

    @NotBlank
    private String name;

    @State(value = Training.BusinessTypes.class)
    private String businessType;

    @State(value = Training.Modes.class)
    private String mode;

    @NotNull
    private Date startTime;

    @NotNull
    private Date endTime;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBusinessType() {
        return businessType;
    }

    public void setBusinessType(String businessType) {
        this.businessType = businessType;
    }

    public String getMode() {
        return mode;
    }

    public void setMode(String mode) {
        this.mode = mode;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

}
